package com.spzx.user.api;

import com.spzx.user.domain.UserAddress;
import org.springframework.cloud.openfeign.FallbackFactory;

public class RemoteUserAddressFallbackFactory implements FallbackFactory<RemoteUserAddressService> {

    @Override
    public RemoteUserAddressService create(Throwable cause) {
        System.out.println("userAdress的兜底函数");
        throw new RuntimeException(cause.getMessage());
    }
}
